<template>
  <div class="page result">
    <div class="scroll-view">
      <customHeader
        middleTitle=""
        @leftCallBack="linkTo"
      />
      <div class="page-body">
        <result
          type="success"
          title="设备解绑成功"
          msg=""
        />
        <div class="btn-wrap">
          <div
            class="btn"
            @click="linkTo"
          >完成</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import customHeader from "../../components/header/header";
import result from "../../components/result/result";
import jsBridge from "../../tools/jsBridge.js";
export default {
  name: "unBindingSuccess",
  data() {
    return {
      from: "" //跳转来源
    };
  },
  methods: {
    linkTo() {
      if (this.from == "machinesManage") {
        this.$router.go(-2);
      } else {
         jsBridge.closeWindow();
      }
    }
  },
  created() {
    this.from = this.$route.query.from;
  },
  components: {
    customHeader,
    result
  }
};
</script>

